<?php
	('Access-Control-Allow-Origin：*');
	include("../config/mysql.php");
	$db = new mysql();
	
	$id = $_GET["id"];
	$type = $_GET["type"];
	$produ= $_GET["produ"];
	$produIntroduce = $_GET["produIntroduce"];
	$price = $_GET["price"];
	$Agencyprice = $_GET["agencyPrice"];
	$Externalprice = $_GET["externalPrice"];
	$remarks = $_GET["remarks"];
	$time = $_GET["time"];
	$rid = $_GET["rid"];
	$validYear = $_GET["validYear"];


	$sql = "update resourcedetails set rid='{$rid}',type='{$type}',produ='{$produ}',type='{$type}',produIntroduce='{$produIntroduce}',price='{$price}',Agencyprice='{$Agencyprice}',Externalprice='{$Externalprice}',remarks='{$remarks}',time='{$time}',validYear='{$validYear}'  where id = '{$id}'";
	
    echo $db->Query($sql);

	$db->close();
?>
